﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HistoryPayment.aspx.cs" Inherits="HistoryPayment" %>
<%@ Register src="../header.ascx" tagname="header" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
        <link href="../style/Style.css" rel="stylesheet" type="text/css" />

    <script src="../js/Axesat.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
   <table cellpadding="0" cellspacing="0">
        <tr>
            <td>            
                <uc1:header ID="header1" runat="server" />
            </td>
        </tr>
   
   <tr><td>
            <img alt="" src="../images/titleAccount.jpg" 
                style="width: 750px; height: 25px" /></td></tr>
        <tr><td>
           
            &nbsp;</td></tr>
        <tr><td>
           
            <asp:ImageButton ID="btnBack" runat="server" ImageUrl="../images/back.jpg" 
                onclick="btnBack_Click" />
            
            </td></tr>
        <tr><td>
            &nbsp;</td></tr>
        <tr><td>
    <asp:GridView ID="grvDocumento" runat="server" AutoGenerateColumns="False" 
               CellPadding="5" Font-Size="11px" ForeColor="#666666" Width="740px" GridLines="None"
            onrowdatabound="grvDocumento_RowDataBound">
            <Columns>
                <asp:BoundField DataField="numero_factura" 
                    HeaderText="# de Factura" >
                    <ItemStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="fecha_factura" HeaderText="Fecha Factura" DataFormatString="{0:dd/MM/yyyy}" />
                <asp:BoundField DataField="valor_factura" HeaderText="Valor Total Factura" 
                    DataFormatString="{0:c}"  >
                <ItemStyle HorizontalAlign="Right" Width="110px" />
                </asp:BoundField>
                <asp:BoundField DataField="tipo_documento" 
                    HeaderText="Tipo Documento " />
                <asp:BoundField DataField="numero_documento" HeaderText="# Documento Aplicado" >
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="fecha_pago" 
                    HeaderText="Fecha Pago" DataFormatString="{0:dd/MM/yyyy}" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="valor_documento" 
                    HeaderText="Valor Documento Aplicado" DataFormatString="{0:c}">
                <ItemStyle HorizontalAlign="Right" Width="110px" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Ver Documento">
                    <ItemTemplate>
                     <asp:HyperLink ID="hplDocumento" runat="server" Target="_blank"><img src="../images/pdf.jpg" alt="0" border="0" /></asp:HyperLink>
              
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                
                     <div class="messageEmpty" >No existe historial de pagos asociados a este usuario.</div>
            </EmptyDataTemplate>
       <HeaderStyle CssClass="headerStyle" />
                <RowStyle CssClass="rowStyle"/>
        </asp:GridView>
        </td></tr></table>
    
    </div>
    </form>
</body>
</html>
